package com.wechatapp.mengyao.poetry.mapper;

import com.wechatapp.mengyao.poetry.entity.Media;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface MediaMapper extends Mapper<Media> {

    List<Media> getMediaListByAlbumId(Map<String, String> map);

    int getMediaPosition(@Param("albumId") long albumId, @Param("mediaId") long mediaId, @Param("mOrder") int mOrder);

}